Linux Servers build FTP service scripts (tested on centos6.5 and CENTOS7) (the script does not make a judgment and needs to clean up the environment itself) (the script only allows uploads to not allow downloads, and does not allow anonymous users
Objective:
The company has hundreds of Windows servers, every time the program is updated, if it is a table copy data, I am afraid to arrange 10 people, one day is not necessarily done, so it is necessary to study a full automatic update scheme, so
-->
Several basic concepts of this application design are:Toolbox reuse: Use existing tools as much as possible;Simplify the running steps; without introducing too much business logic, the more satisfying the requirements are, the better.
So,
☆☆☆ Daily automatic backup site data and database upload ftp☆☆☆
This way, the main is a script (including compressed site data and database, upload), and then use the cron command every day in a specified period of time to run, see the
Using a remote server, FTP operations on another remote server are much faster than local machine operations.Previously wrote an article about how FTP is manually remotely operated on Linux,Today I found an automated batch script that feels good.
Preparations: lftp must be installed in VPS in advance. lftp is powerful. CentOS directly executes: yuminstalllftp and Debian execute: apt-getinstalllftp. You need to create the/home/backup/directory on VPS and the backup directory on FTP. If there
FTP is a common application for accessing files, and it is also used for daily backups. This cyclical effort will undoubtedly need to be done through automated scripting. This system is CentOS7This experiment requires you to do the following:1.
We use DW to build a station when the basic use of FTP tools, and then on the local computer with DW , so there is a problem, when we modify a file, it will be uploaded to the space from the FTP software, such repeated operation. Work efficiency is
Interactive command under FTPIn general, we use FTP to a machine to upload files, download the operation,In the command mode, it is basically:1.FTP Host Name2. Enter the user name3. Enter your password4. Toggle mode (ASC or bin)5. Upload or download
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.